<template >
  <ul :p="p">
    <li v-for="item of p" :key="item.url"><img :src="item.src" alt="">
      <div>
        <p @click.passive="routerDetail()"> {{item.title}}</p>
        <p>
          <watchs></watchs>
          <likes></likes>
          <share></share>
        </p>
      </div>
    </li>
  </ul>
</template>
<script>
import Watchs from "@/components/tips/Watchs";
import Likes from "@/components/tips/Likes";
import Share from "@/components/tips/Share";


export default {
  data() {
    return {
      pp: '1'
    }
  },
  props: ['p'],
  components: { Watchs, Likes, Share },
  methods: {
    routerDetail() {
      this.$router.push({ name: 'mzfull', params: { pp: this.pp } })
    }
  },
}
</script>

<style lang="less" scoped>
.main-contianer {
  overflow: hidden;
  margin: 0 auto;
  padding: 30px 0;
  width: 600px;
  height: 670px;
  background: #fff;
  border-radius: 30px; /*no*/
  ul {
    width: 600px;
    padding: 15px;
    li {
      padding: 20px 5px 26px 5px;
      border-bottom: 1px solid #b4b4b4;
      width: 100%;
      display: flex;
      justify-content: space-between;
      img {
        width: 238px;
        height: 172px;
      }
      div {
        position: relative;
        width: 310px;
        text-align: left;
        p:first-child {
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 4;
          -webkit-box-orient: vertical;
        }
        p:last-child {
          position: absolute;
          right: 0;
          bottom: 0;
          span {
            margin: 0 8px;
          }
        }
      }
    }
  }
}
</style>
